package app

import (
	class "github.com/lab-online/internal/class/infra/model"
	course "github.com/lab-online/internal/course/infra/model"
	report "github.com/lab-online/internal/report/infra/model"
	user "github.com/lab-online/internal/user/infra/model"
)

func (app *Context) Migrate() error {
	return app.DB.AutoMigrate(
		&user.User{},
		&class.Class{},
		&class.Student{},
		&course.Course{},
		&course.CourseExperiment{},
		&course.Experiment{},
		&report.Report{},
		&report.Content{},
	)
}
